//
//  QBWordModel.m
//  QiuBai
//
//  Created by yaohongchao on 4/27/16.
//  Copyright © 2016 yaohongchao. All rights reserved.
//

#import "QBWordModel.h"

@implementation QBWordModel

MJExtensionCodingImplementation

+ (NSDictionary *)objectClassInArray{
    return @{@"items" : [Item class]};
}
@end


@implementation Item

MJExtensionCodingImplementation

+ (NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{@"ID" : @"id"};
}

-(NSString*)imageUrl{
    NSString *strUid = [NSString stringWithFormat:@"%ld",(long)self.ID];
    strUid = [NSString stringWithFormat:@"http://pic.qiushibaike.com/system/pictures/%@/%@/medium/%@",[strUid substringWithRange:NSMakeRange(0, 5)],strUid,self.image];
    return strUid;
}

@end




@implementation ImageSize

MJExtensionCodingImplementation

@end


